<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/taglibs.jsp" %>
<script src="${ctx}/core/scripts/formValidator_min.js" type="text/javascript" charset="UTF-8"></script>
<script src="${ctx}/core/scripts/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript">
	$("#addButtom").bind("click", function(event) {
		submit_ajax('${ctx}/system/cacheCodeManager.action?act=addInput',null);
	});
	function onDelete(url) {
		if(confirm("<s:text name='resource.template.info.deleteConfirm'/>")) {
			submit_ajax_redirect(url);
			return true;
		}else
			return false;
	}
</script>
<body style="overflow-x:hidden;overflow-y:auto;">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
 		<%@include file="/WEB-INF/core/common/message.jsp"  %>
		<tr width="100%">
			<td>
				<table border="0" align="center" cellpadding="0" cellspacing="0">
					<tr width="100%">
						<td width="8" height="27" align="left"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td> 
    					<td width="99%"  align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name='cacheCode.label.bigTitle'/></td>
    					<td width="8" align="right"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
    				</tr>
    			</table>
    		</td>
  		</tr>
		<tr>
    		<td colspan="3" class="biaoge"><table width="100%" border="0" cellpadding="0" cellspacing="0">
	    		<tr>
		        	<td height="25" align="left" valign="top">
		        		<input id="addButtom" name="button" type="button" class="btn" value="<s:text name='cacheCode.button.add'/>"/>
		        	</td>
	      		</tr>
    </table>
	<table id="content" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A6A6A6">
        <tr>
          <td height="20" align="center" bgcolor="#C7D6EA" class="table_head"><s:text name='cacheCode.label.code'/></td>
          <td align="center" bgcolor="#C7D6EA" class="table_head" width="100"><s:text name='cacheCode.label.name'/></td>
          <td height="20" align="center" bgcolor="#C7D6EA" class="table_head"><s:text name='cacheCode.label.listSql'/></td>
          <td align="center" bgcolor="#C7D6EA" class="table_head" width="100"><s:text name='cacheCode.label.isCache'/></td>
          <td align="center" bgcolor="#C7D6EA" class="table_head" width="100"><s:text name='info.operate'/></td>
        </tr>
        <s:iterator value="pageInfo.searchResult" id="it" status="st">
		        <tr>
		          <td align="center">&nbsp;<exts:property value="1"/></td>
		          <td align="center">&nbsp;<exts:property value="2"/></td>
		          <td align="center">&nbsp;<exts:property value="3"/></td>
		          <td align="center">&nbsp;<exts:property value="4"/></td>
			      <td align="center">
		              <table width="70" height="16" border="0" cellpadding="0" cellspacing="0">
			              <tr>
			                <td width="22" align="right"><a href="#" onClick="submit_ajax('${ctx}/system/cacheCodeManager.action?act=editInput&id=<exts:property value="0"/>&cacheCode.code=<exts:property value="5"/>')"><img src="${ctx}/core/images/edit.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="<s:text name='resource.template.modify'/>"/></a></td>
			                <td width="22" align="right"><a href="#" onClick="submit_ajax('${ctx}/system/cacheCodeManager.action?act=view&id=<exts:property value="0"/>&cacheCode.code=<exts:property value="5"/>')"><img src="${ctx}/core/images/view.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="<s:text name='resource.template.view'/>"/></a></td>
			                <td width="22" align="right"><a href="#" onClick="return onDelete('${ctx}/system/cacheCodeManager.action?act=delete&id=<exts:property value="0"/>')"><img src="${ctx}/core/images/del.gif" name="icon_074" width="16" height="16" border="0" id="icon_074" style="CURSOR: hand" title="<s:text name='resource.template.delete'/>"/></a></td>
			              </tr>
		              </table>
		          </td>
		        </tr>
	        </s:iterator>
      </table>
<!-- 表格结束 -->			  
	
<!-- 下分页结束 -->
             <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr><td><s:text name='pagination'/></td></tr>
              </table>
<!-- 下分页结束 -->				
		  </td></tr></table>
</body>

<script>
	tables('content',null);
</script>